import { makeAutoObservable } from 'mobx'
import { adminStore } from './admin'
import { parkingLotTypeStore } from './parkingLotType';
import { parkingLotStore } from './parking'
import { userStore } from './user'
import { carsStore } from './cars';
import { notesStore } from './notes';
import { mainTenanceStore } from './maintenance';
import { mainTenancerStore } from './maintenancer'

class store {
	token: string = ''
	adminStore: adminStore = new adminStore();
	parkingLotTypeStore: parkingLotTypeStore = new parkingLotTypeStore()
	parkingStore: parkingLotStore = new parkingLotStore()
	usersStore: userStore = new userStore()
	carsStore: carsStore = new carsStore()
	notesStore: notesStore = new notesStore()
	mainTenance: mainTenanceStore = new mainTenanceStore()
	mainTenancer: mainTenancerStore = new mainTenancerStore()

	constructor() {
		makeAutoObservable(this)
	}
}

export const storeAll = new store()
